// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;
import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * AdminUser generated by hbm2java
 */
@Entity
@Table(name = "admin_user", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = "username"))
public class AdminUser implements java.io.Serializable 
{
	private static final long serialVersionUID = 121323L;

	private Integer userId;
	private String firstname;
	private String lastname;
	private String email;
	private String username;
	private String password;
	private Date created;
	private Date modified;
	private Date logdate;
	private short lognum;
	private short reloadAclFlag;
	private short isActive;
	private String extra;
	private String rpToken;
	private Date rpTokenCreatedAt;

	public AdminUser() {
	}

	public AdminUser(Date created, short lognum, short reloadAclFlag,
			short isActive) {
		this.created = created;
		this.lognum = lognum;
		this.reloadAclFlag = reloadAclFlag;
		this.isActive = isActive;
	}

	public AdminUser(String firstname, String lastname, String email,
			String username, String password, Date created, Date modified,
			Date logdate, short lognum, short reloadAclFlag, short isActive,
			String extra, String rpToken, Date rpTokenCreatedAt) {
		this.firstname = firstname;
		this.lastname = lastname;
		this.email = email;
		this.username = username;
		this.password = password;
		this.created = created;
		this.modified = modified;
		this.logdate = logdate;
		this.lognum = lognum;
		this.reloadAclFlag = reloadAclFlag;
		this.isActive = isActive;
		this.extra = extra;
		this.rpToken = rpToken;
		this.rpTokenCreatedAt = rpTokenCreatedAt;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "user_id", unique = true, nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "firstname", length = 32)
	public String getFirstname() {
		return this.firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	@Column(name = "lastname", length = 32)
	public String getLastname() {
		return this.lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	@Column(name = "email", length = 128)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "username", unique = true, length = 40)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "password", length = 100)
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "created", nullable = false, length = 19)
	public Date getCreated() {
		return this.created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "modified", length = 19)
	public Date getModified() {
		return this.modified;
	}

	public void setModified(Date modified) {
		this.modified = modified;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "logdate", length = 19)
	public Date getLogdate() {
		return this.logdate;
	}

	public void setLogdate(Date logdate) {
		this.logdate = logdate;
	}

	@Column(name = "lognum", nullable = false)
	public short getLognum() {
		return this.lognum;
	}

	public void setLognum(short lognum) {
		this.lognum = lognum;
	}

	@Column(name = "reload_acl_flag", nullable = false)
	public short getReloadAclFlag() {
		return this.reloadAclFlag;
	}

	public void setReloadAclFlag(short reloadAclFlag) {
		this.reloadAclFlag = reloadAclFlag;
	}

	@Column(name = "is_active", nullable = false)
	public short getIsActive() {
		return this.isActive;
	}

	public void setIsActive(short isActive) {
		this.isActive = isActive;
	}

	@Column(name = "extra", length = 65535)
	public String getExtra() {
		return this.extra;
	}

	public void setExtra(String extra) {
		this.extra = extra;
	}

	@Column(name = "rp_token", length = 65535)
	public String getRpToken() {
		return this.rpToken;
	}

	public void setRpToken(String rpToken) {
		this.rpToken = rpToken;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "rp_token_created_at", length = 19)
	public Date getRpTokenCreatedAt() {
		return this.rpTokenCreatedAt;
	}

	public void setRpTokenCreatedAt(Date rpTokenCreatedAt) {
		this.rpTokenCreatedAt = rpTokenCreatedAt;
	}

}
